package models

import "database/sql"

// https://gorm.io/zh_CN/docs/models.html

// AppGuahaoYvYue 预约挂号
type AppGuahaoYvYue struct {
	ID           int64        `gorm:"primaryKey;autoIncrement;not null"`
	UserID       int64        `gorm:"not null; index;"`
	DeptID       string       `gorm:"type:varchar(36); null;"`
	DeptName     string       `gorm:"type:varchar(36); null;"`
	DoctorID     string       `gorm:"type:varchar(36); null;"`
	DoctorName   string       `gorm:"type:varchar(36); null;"`
	GuahaoNumber string       `gorm:"type:varchar(11); null;"`
	AppointDate  sql.NullTime `gorm:"type(time);null;"`

	BaseModel
}

func (AppGuahaoYvYue) TableName() string {
	return "app_guahao_yvyue"
}
